package com.betterjr.modules.risk.api.service;

import java.util.Map;

import org.springframework.stereotype.Service;

import com.alibaba.dubbo.config.annotation.Reference;
import com.betterjr.common.web.AbstarctRemoteApiInvoke;
import com.betterjr.common.web.AjaxRemoteApiParam;
import com.betterjr.modules.customer.ICustRelationConfigService;

/**
 * 
 * @ClassName: RemoteApiFindElecAgreementCustService 
 * @Description: 查询电子合同服务商
 * @author xuyp
 * @date 2018年7月7日 下午3:08:40 
 *
 */

@Service
public class RemoteApiFindElecAgreementCustInvokeService extends AbstarctRemoteApiInvoke {

    @Reference(interfaceClass = ICustRelationConfigService.class)
    private ICustRelationConfigService custRelationCOnfigService;

    private String apiCode = "RAI00003";

    @Override
    public String saveOrFindInvoke(AjaxRemoteApiParam param) {

        return custRelationCOnfigService.webFindElecAgreementServiceCust();
    }

    @Override
    public boolean supportInvoke(String anApiCode) {
        return apiCode.equals(anApiCode);
    }

    @Override
    public boolean checkParam(Map<String, Object> anParamMap) {

        return true;
    }

}
